// 引入路由组件
import Home from '@/pages/Home/home.vue'
import Login from '@/pages/Login/login.vue'
import Search from '@/pages/Search/search.vue'
import Register from '@/pages/Register/register.vue'
import Detail from '@/components/Detail'
import AddCartSuccess from '@/pages/AddCartSuccess'
import ShopCart from '@/pages/ShopCart'
 
export default [
    {path:'/ShopCart',component:ShopCart,meta:{show:true}},
    {path:'/addCartSuccess',component: AddCartSuccess,meta:{show:true},name:'addCartSuccess'},
    {path:'/detail/:skuId',component:Detail,meta:{show:true}},
    {path:'/home',component:Home,meta:{show:true}},
    {path:'/login',component:Login,meta:{show:false}},
    // /:keyword占位
    {path:'/search/:keyword?',component: Search,meta:{show:true},name: 'search'},
    {path:'/register',component:Register,meta:{show:false}},
    // 重定路由项
    {path:'/',redirect:'/home'}
]